/****************************************************************************
 Copyright (c) 2021, rjgf
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NON_INFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 ****************************************************************************/
package org.jeecg.modules.flowable.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 模型审批参与者
 */
@Data
@ApiModel(value = "flow_model_participant对象", description = "流程实例参与者")
@TableName(value = "flow_model_participant")
public class FlowModelParticipant implements Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "参与者类型", notes = "1:用户、2：角色、3：部门")
    private Integer targetType;

    @ApiModelProperty(value = "关联Id")
    private String targetId;

    @ApiModelProperty(value = "关联名称：用户名、角色名")
    private String targetName;

    @ApiModelProperty(value = "模型Id")
    private String modelId;

    @ApiModelProperty(value = "绑定模型key")
    private String modelKey;

    @ApiModelProperty(value = "模型名称")
    private String modelName;

    @ApiModelProperty(value = "流程节点Id")
    private String activityId;

    @ApiModelProperty(value = "对应流程Id")
    private String processDefinitionId;

    @ApiModelProperty(value = "使用场景")
    private Integer useScenarios;

}
